<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>外包工考勤成本明细表管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/employee/outsourceCostDetail/list">外包工考勤成本明细表列表</a></li>
		<shiro:hasPermission name="employee:outsourceCostDetail:edit"><li><a href="${ctx}/employee/outsourceCostDetail/form">外包工考勤成本明细表添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="outsourceCostDetail" action="${ctx}/employee/outsourceCostDetail/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>员工编号：</label>
				<form:input path="employeenumber" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>国家：</label>
				<sys:treeselect id="company" name="company.id" value="${outsourceCostDetail.company.id}" labelName="company.name" labelValue="${outsourceCostDetail.company.name}"
					title="仓库" url="/sys/office/treeData?type=1" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>

			<li><label>仓库：</label>
				<sys:treeselect id="office" name="office.id" value="${outsourceCostDetail.office.id}" labelName="office.name" labelValue="${outsourceCostDetail.office.name}"
					title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>员工编号</th>
				<th>仓库</th>
				<th>国家</th>
				<th>外包公司</th>
				<th>员工类别</th>
				<th>职位</th>
				<th>职级</th>
				<th>出勤日期</th>
				<th>时薪标准</th>
				<th>发薪总工时</th>
				<th>平时工时</th>
				<th>1.5倍加班时长</th>
				<th>平时工资</th>
				<th>加班工资</th>
				<th>差异调整</th>
				<th>成本总计（未加增值税）</th>
				<th>增值税率</th>
				<th>应支付外包公司费用</th>
				<th>汇率</th>
				<th>成本总计（RMB)</th>
				<th>修改时间</th>
				<th>备注</th>
				<shiro:hasPermission name="employee:outsourceCostDetail:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="outsourceCostDetail">
			<tr>
				<td><a href="${ctx}/employee/outsourceCostDetail/form?id=${outsourceCostDetail.id}">
					${outsourceCostDetail.employeenumber}
				</a></td>
				<td>
					${outsourceCostDetail.office.name}
				</td>
				<td>
					${outsourceCostDetail.company.name}
				</td>
				<td>
					${fns:getDictLabel(outsourceCostDetail.outsourcingCompany, 'outsourcing_company_type', '')}

				</td>
				<td>
					${fns:getDictLabel(outsourceCostDetail.employeeType, 'employee_type', '')}
				</td>
				<td>
					${fns:getDictLabel(outsourceCostDetail.position, 'position_type', '')}
				</td>
				<td>
					${fns:getDictLabel(outsourceCostDetail.rank, 'rank_type', '')}
				</td>
				<td>
					<fmt:formatDate value="${outsourceCostDetail.attendanceDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${outsourceCostDetail.wageStandard}
				</td>
				<td>
					${outsourceCostDetail.wageHour}
				</td>
				<td>
					${outsourceCostDetail.normalHour}
				</td>
				<td>
					${outsourceCostDetail.overtimeHour}
				</td>
				<td>
					${outsourceCostDetail.normalMoney}
				</td>
				<td>
					${outsourceCostDetail.overtimeMoney}
				</td>
				<td>
					${outsourceCostDetail.diffAdjust}
				</td>
				<td>
					${outsourceCostDetail.temporaryMoney}
				</td>
				<td>
					${outsourceCostDetail.addedTax}
				</td>
				<td>
					${outsourceCostDetail.outsourcingMoney}
				</td>
				<td>
					${outsourceCostDetail.exchangeRate}
				</td>
				<td>
					${outsourceCostDetail.totalMoney}
				</td>
				<td>
					<fmt:formatDate value="${outsourceCostDetail.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${outsourceCostDetail.remarks}
				</td>
				<shiro:hasPermission name="employee:outsourceCostDetail:edit"><td>
    				<a href="${ctx}/employee/outsourceCostDetail/form?id=${outsourceCostDetail.id}">修改</a>
					<a href="${ctx}/employee/outsourceCostDetail/delete?id=${outsourceCostDetail.id}" onclick="return confirmx('确认要删除该外包工考勤成本明细表吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>